From: ihy123 Date: Sun, 17 Aug 2025 12:54:19 +0000 (+0300) Subject: ip/ffmpeg: reset swr_frame_start when seeking X-Git-Tag: archive/raspbian/2.12.0-2+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=86638da9685535d023303c79530ba885464f6d03;p=cmus.git ip/ffmpeg: reset swr_frame_start when seeking Gbp-Pq: Name 0010-ip-ffmpeg-reset-swr_frame_start-when-seeking.patch --- diff --git a/ip/ffmpeg.c b/ip/ffmpeg.c index c659c13..71cc511 100644 --- a/ip/ffmpeg.c +++ b/ip/ffmpeg.c @@ -444,6 +444,7 @@ static int ffmpeg_seek(struct input_plugin_data *ip_data, double offset) return -IP_ERROR_FUNCTION_NOT_SUPPORTED; priv->swr_frame->nb_samples = 0; + priv->swr_frame_start = 0; avcodec_flush_buffers(priv->codec_ctx); swr_convert(priv->swr, NULL, 0, NULL, 0); /* flush swr buffer */ return 0;